import domain.Award;
import domain.Expression;
import domain.Result;
import engine.RuleEngine;
import util.RandomUtil;

public class Application {
    public static void main(String[] args) {
        RandomUtil ru = new RandomUtil();
        //调用getResult方法将点数的个数存入到Result中
        Result result = ru.getResult();
        //将Result对象中的全部元素赋值给Expression对象
        Expression ex = new Expression(result);

        //构造引擎对象
        RuleEngine engine = new RuleEngine();
        //调用引擎方法对结果进行判断，并返回结果
        Award award = engine.process(ex);

        //输出结果
        System.out.println(award);
    }
}
